package com.hzeport.bgs22emduty.outbound.db;

import com.hzeport.bgs22emduty.entity.DutyScheduleInfo;
import com.hzeport.bgs22emduty.outbound.DutyScheduleInfoRepository;
import com.hzeport.bgs22emduty.outbound.db.mapper.DutyScheduleInfoMapper;
import com.masa.common.data.base.BaseRepositoryImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;

/**
 * ${comments}
 *
 * @author code generator
 * @date 2022-12-02 11:21:59
 */
@Service
@Slf4j
public class DutyScheduleInfoRepositoryImpl extends BaseRepositoryImpl<DutyScheduleInfoMapper, DutyScheduleInfo> implements DutyScheduleInfoRepository {

    @Resource
    private DutyScheduleInfoMapper dutyScheduleInfoMapper;
    @Override
    public List<DutyScheduleInfo> getTimeDTOForNow(String customnName, LocalDate today, LocalTime localTime,LocalDate yesterday) {
        return dutyScheduleInfoMapper.getTimeDTOForNow(customnName,today,localTime,yesterday);
    }
}
